﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/philadmin/Philadmin.Master" CodeBehind="EditHotelCost.aspx.vb" Inherits="Phila.EditHotelCost" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" cellpadding="3" cellspacing="3" align="center">
        <tr>
            <td>
                <h1>Edit Hotel Cost </h1>
                <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate> --%>
                <table width="98%" align="center" cellpadding="5" cellspacing="2">
                    <tr>
                        <td colspan="2" align="center" class="style1">
                            <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Bold="True"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="120px">
                            <b>Client Type</b></td>
                        <td>
                            <asp:DropDownList ID="cmbClient" runat="server" CssClass="form-text">                                
                                <asp:ListItem Text="--Select--" Value="0"></asp:ListItem>
                                <asp:ListItem Text="B2C" Value="b2c"></asp:ListItem>
                                <asp:ListItem Text="B2B" Value="b2b"></asp:ListItem>
                            </asp:DropDownList>

                            <asp:RequiredFieldValidator ID="reqClient" runat="server" 
                                ControlToValidate="cmbClient" Display="Dynamic" 
                                ErrorMessage="&lt;br /&gt;Select Client Type" InitialValue="0" 
                                ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>

                        </td>
                    </tr>
                    <tr>
                        <td width="120px">
                            <b>Hotel Name</b></td>
                        <td>
                            <asp:DropDownList ID="cmbHotel" runat="server" CssClass="form-text">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="reqHotel" runat="server" 
                                ErrorMessage="&lt;br /&gt;Select Hotel Name" ControlToValidate="cmbHotel" 
                                Display="Dynamic" InitialValue="0" ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <b>Room Category</b></td>
                        <td>
                            <asp:DropDownList ID="cmbRoomCat" runat="server" CssClass="form-text">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="reqRoomCat" runat="server" 
                                ErrorMessage="&lt;br /&gt;Select Room Category" 
                                ControlToValidate="cmbRoomCat" Display="Dynamic" InitialValue="0" 
                                ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                       </td>
                    </tr>
                    <tr>
                        <td>
                            <b>Type of Room</b></td>
                        <td>
                            <asp:DropDownList ID="cmbRoom" runat="server" CssClass="form-text">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="reqHotel0" runat="server" 
                                ErrorMessage="&lt;br /&gt;Select Room Type" ControlToValidate="cmbHotel" 
                                Display="Dynamic" InitialValue="0" ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                       </td>
                    </tr>
                    <tr>
                        <td>
                            <b>Type of Meal</b></td>
                        <td>
                            <asp:Label ID="lblMeal" runat="server" Font-Bold="True" Text="None" Visible="false"></asp:Label>
                            <asp:DropDownList ID="cmbMeal" runat="server" CssClass="form-text">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <b>Start Date</b></td>
                        <td>
                            <asp:TextBox ID="txtStartDate" runat="server" MaxLength="25" size="20" CssClass="form-text datepicker startdate"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="reqStart" runat="server" 
                                ErrorMessage="&lt;br /&gt;Enter Start Date" 
                                ControlToValidate="txtStartDate" Display="Dynamic" ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <b>End Date</b></td>
                        <td>
                            <asp:TextBox ID="txtEndDate" runat="server" MaxLength="25" size="20" CssClass="form-text datepicker enddate"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="reqEnd" runat="server" 
                                ErrorMessage="&lt;br /&gt;Enter End Date" ControlToValidate="txtEndDate" 
                                Display="Dynamic" ValidationGroup="submit" CssClass="red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <b>Cost</b></td>
                        <td>
                                <asp:TextBox ID="txtCost" runat="server" MaxLength="10" size="20" CssClass="form-text"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="regCost" runat="server" ControlToValidate="txtCost"
                                    Display="Dynamic" ErrorMessage="&lt;br /&gt;Enter Money only (Two decimals only)"
                                    ValidationExpression="^\$?[0-9]+(,[0-9]{3})*(\.[0-9]{2})?$" 
                                    ValidationGroup="submit" CssClass="red"></asp:RegularExpressionValidator>
                            </td>
                    </tr>
                    <tr>
                        <td>
                            <b>IsActive</b></td>
                        <td>
                            <asp:CheckBox ID="chkActive" runat="server" Checked="true" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            </td>
                        <td>
                                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="submit" CssClass="form-button" />&nbsp;&nbsp;
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="form-button" />
                            </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
                <%--</ContentTemplate>
                </asp:UpdatePanel>--%>
                                    
            </td>
        </tr>
    </table>
</asp:Content>
